<!DOCTYPE html>
<!-- saved from url=(0052)http://getbootstrap.com/docs/4.0/examples/dashboard/ -->
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title th:text="#{login.tip}"></title>
    <!-- Bootstrap core CSS -->
    <link href="asserts/css/bootstrap.min.css" th:href="@{/webjars/bootstrap/4.0.0/css/bootstrap.css}" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="asserts/css/dashboard.css" th:href="@{/static/asserts/css/dashboard.css}" rel="stylesheet">
    <style type="text/css">
        /* Chart.js */

        @-webkit-keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        @keyframes chartjs-render-animation {
            from {
                opacity: 0.99
            }
            to {
                opacity: 1
            }
        }

        .chartjs-render-monitor {
            -webkit-animation: chartjs-render-animation 0.001s;
            animation: chartjs-render-animation 0.001s;
        }
    </style>
</head>

<body>
<!--引入抽取的topbar-->
<!--模板名：会使用thymeleaf的前后缀配置规则进行解析-->
<!--<div th:replace="commons/bar::topbar"></div>-->

<div class="container-fluid">
    <div class="row">
        <!--引入侧边栏-->
        <div th:replace="commons/bar::#sidebar(activeUri='entities')"></div>
        <p style="color: red" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
        <main role="main" class="col-md-9 ml-sm-auto col-lg-10 pt-3 px-4" th:action="@{/bookinfo/{id}}">
            <form name="findForm" th:action="@{/bookinfo/{id}}" th:href="@{/bookinfo/{id}}" method="post">
            </form>
            <div class="table-responsive">
                <div>
                    <table class="table table-striped table-sm">
                        <tr>
                            <th style="padding-left: 40px">书名</th>
                            <th th:text="${info.bookName}"></th>
                        </tr>
                        <tr>
                            <th style="padding-left: 40px">作者</th>
                            <th th:text="${info.bookAuthor}"></th>
                        </tr>
                        <tr>
                            <th style="padding-left: 40px">所属者</th>
                            <th th:text="${owner.name}"></th>
                        </tr>
                        <tr>
                            <th style="padding-left: 40px">学号</th>
                            <th th:text="${allinfo.owner}"></th>
                        </tr>
                        <tr>
                            <th style="padding-left: 40px">状态</th>
                            <div th:switch="${allinfo.status}">
                                <th th:case="0">在架</th>
                                <th th:case="1">被借</th>
                                <th th:case="2">续借</th>
                                <th th:case="3">超时</th>
                            </div>
                        </tr>
                        <tr>
                            <th style="padding-left: 40px">位置</th>
                            <th th:text="${allinfo.location}"></th>
                        </tr>
                        <tr>
                            <th style="padding-left: 40px">出版社</th>
                            <th th:text="${info.bookPrinter}"></th>
                        </tr>
<!--                        <tr>-->
<!--                            <th style="padding-left: 40px">版次</th>-->
<!--                            <th th:text="${emp.bookType.bookVersion}"></th>-->
<!--                        </tr>-->
<!--                        <tr>-->
<!--                            <th style="padding-left: 40px">印刷次数</th>-->
<!--                            <th th:text="${emp.bookType.bookPrinterVersion}"></th>-->
<!--                        </tr>-->
                        <tr>
                            <th style="padding-left: 40px">ISBN</th>
                            <th th:text="${info.bookIsbn}"></th>
                        </tr>
                        <tr>
                            <th style="padding-left: 40px">价格</th>
                            <th th:text="${info.bookPrice}"></th>
                        </tr>
                        <tr>
                            <th style="padding-left: 40px">上架推荐</th>
                            <th th:text="${recommend.description}"></th>
                        </tr>
                        <tr>
                            <th style="padding-left: 40px">摘要</th>
                            <th th:text="${info.bookAbstract}"></th>
                        </tr>
                        <tr>
                            <a class="btn btn-sm btn-primary" th:href="@{/entities}">跳转all页面</a>
                        </tr>
                    </table>
                </div>
            </div>
        </main>
        <form id="deleteEmpForm" method="post">
            <input type="hidden" name="_method" value="delete"/>
        </form>

    </div>
</div>

<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="asserts/js/jquery-3.2.1.slim.min.js"
        th:src="@{/webjars/jquery/3.3.1/jquery.js}"></script>
<script type="text/javascript" src="asserts/js/popper.min.js"
        th:src="@{/webjars/popper.js/1.11.1/dist/popper.js}"></script>
<script type="text/javascript" src="asserts/js/bootstrap.min.js"
        th:src="@{/webjars/bootstrap/4.0.0/js/bootstrap.js}"></script>

<!-- Icons -->
<script type="text/javascript" src="asserts/js/feather.min.js" th:src="@{/static/asserts/js/feather.min.js}"></script>
<script>
    feather.replace()
</script>
<script>
    $(".deleteBtn").click(function () {
        //删除当前员工的
        $("#deleteEmpForm").attr("action", $(this).attr("del_uri")).submit();
        return false;
    });
</script>

</body>
</html>